/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import java.util.List;
import javax.ejb.Local;
import model.entity.Customer;

/**
 *
 * @author dingnangen
 */
@Local
public interface InterfaceServiceLocal <E> {

    int count();

    int count(String str);
    int count(String str,List plist);

    void create(E entity);

    E edit(E entity);

    E find(Object id);

    List<E> findAll();

    List<E> findAll(String str, List p);

    E findOneItem(String str, List p);

    List<E> findRange(int[] range);

    List<E> findRange(int[] range, String str, List p);

 
    void remove(E entity);
    
}
